"""
URL configuration for dataweb project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls')
"""
from django.contrib import admin
from django.urls import path
from manager import views

urlpatterns = [
    # path("admin/", admin.site.urls),
    # path('api/swagger', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
    path('api/login', views.login),
    path('api/register',views.register),
    path('api/index/test',views.test),
    path('api/index/upload',views.recieve),
    path('api/index/connect',views.connect),
    path('api/data/test',views.test_data),
    path('api/data/test_dm', views.test_dmdata),
    path('api/data/userinfo',views.correct_userinfo),
    path('api/data/logistinfo',views.correct_logistinfo),
    path('api/data/otherinfo',views.correct_otherinfo),
    path('api/data/group',views.group),
    path('api/data/handle',views.handle),
    path('api/data/userinfo/reset',views.userinfo_reset),
    path('api/data/logistinfo/reset',views.logistinfo_reset),
    path('api/data/otherinfo/reset',views.otherinfo_reset),
    path('api/handle/port',views.port_io),
    path('api/handle/port_goods',views.port_goods_io),
    path('api/handle/flow',views.flow),
    path('api/handle/round',views.round),
    path('api/handle/get_port',views.get_port_year),
    path('api/handle/get_goods',views.get_goods),
    path('api/handle/goods_tendency',views.goods_tendency),
    path('api/handle/cal_pro',views.get_prosperity),
    path('api/handle/cycle',views.get_cycle),
    path('api/admin/get_user',views.get_users),
    path('api/admin/update',views.update_share),
    path('api/share/apply',views.apply),
    path('api/share/list',views.getlist),
    path('api/share/check',views.check),
    path('api/share/data',views.share_data),
    path('api/share/export',views.export),
    path('api/index/get_src',views.get_src_list),
    path('api/index/del_src',views.del_src),
    path('api/index/get_item',views.get_src_item),
    path('api/index/save',views.save_src),
]
